/**
    GpsNetwork lets you download files and log some system parameters from NetRs DGPS receivers.
    
    Copyright (C) 2009  Eduardo Maureira
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    email:emaureir@gmail.com
 */
/**
 * Estos eventos se gatillan cuando un proceso
 * originado en la clase SystemCall Finaliza.
 * La captura de estos eventos permite tomar acciones
 * a partir de la informacion contenida en este evento.
 */
package process;

import java.util.EventObject;

/**
 * @author eduardo
 *
 */
public class EventoSystemCall extends EventObject {

	private short tipo;
	private int exitValue;
	private String cliente;
	
	public final static short STARTED = 2;//Que un System call Comenzo
	public final static short TERMIMATED = 3;//Que un System call Termino
	
	public EventoSystemCall(Object source,short tipo, int _exitValue) {
		super(source);
		this.tipo = tipo;
		this.exitValue = _exitValue;
		cliente = null;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1387798004481823203L;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	public int getExitValue() {
		return exitValue;
	}

	public void setExitValue(int exitValue) {
		this.exitValue = exitValue;
	}

	/**
	 * 
	 * El tipo corresponde a alguno de los valores final static de esta clase.
	 * STARTED | TERMINATED
	 * @return
	 */
	public short getTipo() {
		return tipo;
	}

	public void setTipo(short tipo) {
		this.tipo = tipo;
	}

	/**
	 * @return the cliente
	 */
	public String getCliente() {
		return cliente;
	}

	/**
	 * @param cliente the cliente to set
	 */
	public void setCliente(String cliente) {
		this.cliente = cliente;
	}	

}
